package com.jspgou.cms.dao;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.Store;

public interface StoreDao {
	public Pagination getPage(int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,Boolean examine,int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,Boolean examine,Boolean forbidden,int pageNo, int pageSize);

	public Store findById(Long id);
	
	public Store findByStorePath(String storePath);
	
	//通过域名查找店铺
	public Store findByDomainName(String domainName);

	public Store save(Store bean);

	public Store updateByUpdater(Updater<Store> updater);

	public Store deleteById(Long id);
}